<!doctype html>
<html>
    
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <title>Cast Pacman</title>
		<script src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"></script>
		<script src="base64.js"></script>
		<script src="audiomp3.js"></script>
		<script src="pacman.js"></script>
		<script type="text/javascript">

			window.onload = onLoad;
			
			/**
			 * Initializes the receiver application and game objects, and starts the
			 * receiver.
			 */
			function onLoad() {
				console.debug("****onLoad****");
				window.gameEngine = new cast.pacman();
			}

		</script>
        <script>
			window.google = {
                kEI: "RF33S9TnL5KekQWcnZTOCA",
                kEXPI: "24661",
                kCSI: {
                    e: "24661",
                    ei: "RF33S9TnL5KekQWcnZTOCA",
                    expi: "24661"
                },
                ml: function () {},
                kHL: "zh-CN",
                time: function () {
                    return (new Date).getTime()
                },
                log: function (b, d, c) {
                    var a = new Image,
                        e = google,
                        g = e.lc,
                        f = e.li;
                    a.onerror = (a.onload = (a.onabort = function () {
                        delete g[f]
                    }));
                    g[f] = a;
                    c = c || "/gen_204?atyp=i&ct=" + b + "&cad=" + d + "&zx=" + google.time();
                    a.src = c;
                    e.li = f + 1
                },
                lc: [],
                li: 0,
                Toolbelt: {}
            };
            window.google.sn = "webhp";
            window.google.timers = {
                load: {
                    t: {
                        start: (new Date).getTime()
                    }
                }
            };
            try {
                window.google.pt = window.chrome && window.chrome.csi && Math.floor(window.chrome.csi().pageT);
            } catch (u) {}
            window.google.jsrt_kill = 1;
            var _gjwl = location;

            function _gjuc() {
                var b = _gjwl.href.indexOf("#");
                if (b >= 0) {
                    var a = _gjwl.href.substring(b + 1);
                    if (/(^|&)q=/.test(a) && a.indexOf("#") == -1 && !/(^|&)cad=h($|&)/.test(a)) {
                        _gjwl.replace("/search?" + a.replace(/(^|&)fp=[^&]*/g, "") + "&cad=h");
                        return 1
                    }
                }
                return 0
            }
            function _gjp() {
                !(window._gjwl.hash && window._gjuc()) && setTimeout(_gjp, 500)
            };
            window._gjp && _gjp()
        </script>
        <script>
			if( "1" == "1"){
            google.y = {};
            google.x = function (e, g) {
                google.y[e.id] = [e, g];
                return false
            };
            if (!window.google) window.google = {};
            window.google.crm = {};
            window.google.cri = 0;
            window.clk = function (e, f, g, k, l, b, m) {
                if (document.images) {
                    var a = encodeURIComponent || escape,
                        c = new Image,
                        h = window.google.cri++;
                    window.google.crm[h] = c;
                    c.onerror = (c.onload = (c.onabort = function () {
                        delete window.google.crm[h]
                    }));
                    if (b && b.substring(0, 6) != "&sig2=") b = "&sig2=" + b;
                    c.src = ["/url?sa=T", "", f ? "&oi=" + a(f) : "", g ? "&cad=" + a(g) : "", "&ct=", a(k || "res"), "&cd=", a(l), "&ved=", a(m), e ? "&url=" + a(e.replace(/#.*/, "")).replace(/\+/g, "%2B") : "", "&ei=", "RF33S9TnL5KekQWcnZTOCA", b].join("")
                }
                return true
            };
            window.gbar = {
                qs: function () {},
                tg: function (e) {
                    var o = {
                        id: 'gbar'
                    };
                    for (i in e) o[i] = e[i];
                    google.x(o, function () {
                        gbar.tg(o)
                    })
                }
            };
			}
        </script>
    </head>
    
    <body >
        <center>
            <br clear=all id=lgpd>
            <div id=lga><!--<a href="/search?q=PAC-MAN+30th+Anniversary&ct=pacman10-hp&oi=ddle" id="dlink"></a>-->
                <div
                id=logo style="width:1200px;height:402px;background:black url(pacman10-hp.png) 0 0 no-repeat;position:relative;margin-bottom:9px"
                title="PAC-MAN's 30th Birthday! Doodle with PAC-MAN? & ?1980 NAMCO BANDAI Games Inc.">
                    <div id="logo-l" style="width:200px;height:2px;left:500px;top:360px;background:#990;position:absolute;display:block;overflow:hidden">
                        <div id="logo-b" style="position:absolute;left:0;background:#ff0;height:8px;width:0"></div>
                    </div>
            </div>
            <script>
                google.pml = function () {
                    function d(a) {
                        if (!google.pml_installed) {
                            google.pml_installed = true;
                            if (!a) {
                                document.getElementById("logo").style.background = "black";
                                window.setTimeout(function () {
                                    var b = document.getElementById("logo-l");
                                    if (b) b.style.display = "block"
                                }, 400)
                            }
                            a = document.createElement("script");
                            a.type = "text/javascript";
                            a.src = "pacman10-hp.3.js";
                            google.dom.append(a);
                        }
                    }
                    function e() {
                        if (document.f && document.f.btnI) document.f.btnI.onclick = function () {
                            if (typeof google.pacman != "undefined") google.pacman.insertCoin();
                            else {
                                google.pacManSound = true;
                                d(false)
                            }
                            return false
                        }
                    }
                    if (!google.pml_loaded) {
                        google.pml_loaded = true;
                        window.setTimeout(function () {
                            document.f && document.f.q && document.f.q.value == "" && d(true)
                        }, 1E4);
                        e();
                        google.rein && google.rein.push(e);
                        google.dstr && google.dstr.push(function () {
                            google.pacman && google.pacman.destroy();
                            if (google.pml_installed) {
                                for (var a = (document.getElementById("xjsc") || document.body).getElementsByTagName("script"), b = 0, c; c = a[b++];) c.src.indexOf("/logos/js") != -1 && google.dom.remove(c);
                                google.pml_installed = false
                            }
                        });
                        /*
						google.pacManQuery = function () {
                            google.nav(document.getElementById("dlink").href)
                        }
						*/
                    }
                };
            </script>
            </div>

            <form action="http://www.google.com/search" name=f>
                <table cellpadding=0 cellspacing=0>
                    <tr valign=top>
                        <td align=center nowrap>
                            <input name=hl type=hidden value=zh-CN>
                            <input name=source type=hidden value=hp>
                            <div class=ds style="height:32px;margin:4px 0;display:none">
                                <input autocomplete="off" maxlength=2048 name=q class=lst title="Google Search"
                                value="" size=57 style="border:1px solid #ccc;border-bottom-color:#999;border-right-color:#999;font:18px arial,sans-serif bold;height:25px;margin:0;padding:5px 8px 0 6px;vertical-align:top">
                            </div>
							 <div class=ds style="height:32px;margin:4px 0;display:block;font:18px arial,sans-serif bold;font-style:italic;">
								Remade of the classic Pacman game, based on Google doodle of PACMAN 30th Anniversary
							</div>
                            <br style="line-height:0"><span class=ds><span class=lsbb><input name=btnG type=submit value="Google Search" class=lsb style="display:none"></span></span>
                            <span
                            class=ds><span class=lsbb><input name=btnI type=submit value="Insert Coin" class=lsb></span></span>
                        </td>
                    </tr>
                </table>

        </center>
		<div id="dbg"></div>
        <script>
            if (google.y) google.y.first = [];
            if (google.y) google.y.first = [];
            google.dstr = [];
            google.rein = [];
            window.setTimeout(function () {
                var a = document.createElement("script");
                a.src = "ex.js";
                (document.getElementById("xjsd") || document.body).appendChild(a);
                if (google.timers && google.timers.load.t) google.timers.load.t.xjsls = (new Date).getTime();
            }, 0);;
            google.neegg = 1;
            google.y.first.push(function () {
                google.ac.i(document.f, document.f.q, '', '', '', {
                    o: 1,
                    sw: 1
                });
                google.History && google.History.initialize('/webhp?source\x3dg_cn')
            });
            if (google.j && google.j.en && google.j.xi) {
                window.setTimeout(google.j.xi, 0);
                google.fade = null;
            }
            google.pml && google.pml();
        </script>
    </body>

</html>